package com.platform.service;

import com.platform.dao.ApiTokenMapper;
import com.platform.dao.SysVersionMapper;
import com.platform.entity.SysVersionVo;
import com.platform.entity.TokenEntity;
import com.platform.entity.UserVo;
import com.platform.util.CheckSumBuilder;
import io.rong.RongCloud;
import io.rong.methods.user.User;
import net.sf.json.JSONObject;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;


@Service
public class SysVersionService {
    @Autowired
    private SysVersionMapper sysVersionMapper;

    public SysVersionVo selectOne(Map<String, Object> params) {
        List<SysVersionVo> sysVersionVos = sysVersionMapper.queryList(params);
        if (sysVersionVos.size() > 0) {
            return sysVersionVos.get(0);
        }
        return null;
    }

}
